﻿using System;

namespace CC.Yacht
{
    public class DieChangedEventArgs : EventArgs
    {
        #region Constructor
        public DieChangedEventArgs(DieFace face)
        {
            Event = DieChangedEvents.FaceChanged;
            Face = face;
        }

        public DieChangedEventArgs(bool locked)
        {
            Event = DieChangedEvents.LockedChanged;
            Face = DieFace.None;
            Locked = locked;
        }

        public DieChangedEventArgs(DieFace face, bool locked)
        {
            Event = DieChangedEvents.FaceChanged | DieChangedEvents.LockedChanged;
            Face = face;
            Locked = locked;
        }
        #endregion

        #region Private Fields
        #endregion

        #region Public Properties
        public DieChangedEvents Event { get; private set; }

        public DieFace Face { get; private set; }

        public bool Locked { get; private set; }
        #endregion
    }
}
